package luren.king.wechatlite.Holder;

import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import luren.king.wechatlite.R;

public class MessageHolder extends RecyclerView.ViewHolder {
    public RelativeLayout Msg;
    public ImageView Avatar;
    //头像
    public TextView Name;
    //聊天对象名称
    public TextView Time;
    //时间
    public TextView Message;
    //预览信息
    public ImageView Silent;
    //是否免打扰

    public MessageHolder(@NonNull View itemView) {
        super(itemView);
        Avatar = itemView.findViewById(R.id.msg_img);
        Name = itemView.findViewById(R.id.msg_name);
        Time = itemView.findViewById(R.id.msg_time);
        Message = itemView.findViewById(R.id.msg_msg);
        Silent = itemView.findViewById(R.id.msg_silent);
        Msg = itemView.findViewById(R.id.msg);
    }
}
